package com.heima;


import com.heima.pojo.Person;
import com.heima.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
public class SpringBoot_Application {


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringBoot_Application.class);
        Person bean = context.getBean(Person.class);
        User bean1 = context.getBean(User.class);
        System.out.println(bean);
        System.out.println(bean1);
    }

}
